package design.c1_chainOfResponsibility;

/**
 * 具体处理者3：班主任
 */
public class ClassAdviser extends Leader {

	@Override
	public void handleRequest(int leaveDay) {
		if (leaveDay < 2) {
			System.out.println("班主任批准您请假" + leaveDay + "天。");
		} else {
			if (getNext() != null) {
				getNext().handleRequest(leaveDay);
			} else {
				System.out.println("请假天数太多，没有人批准该假条！");
			}
		}
	}
}
